/**
 * Single de post (matéria) — template single.php
 *
 * Estilos extras específicos da matéria (a faixa “Siga nossas redes” está em header-menu.css).
 *
 * @package PT2026
 */

body.pt2026-single-artigos-bg {
	background-color: #F5F3EB;
}

 @media (max-width: 766.98px) {
    .single-post-title {
        font-size: 28px;
    }

	/*
	 * Mobile: o .container do tema já aplica 20px laterais (style.css).
	 * Não duplicar padding aqui — senão o bloco .single-post-main-row fica ~40px
	 * e desalinha de .single-related-posts (só com padding do container).
	 */
	.single-post-back-link {
		margin-left: 0 !important;
	}

	.single-post-author-meta,
	.single-post-content,
	.single-post-header {
		padding-left: 0 !important;
		padding-right: 0 !important;
		border-left: 0 !important;
	}

	.single-post-image-wrap {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.single-post-title--artigos {
		font-size: 40px !important;
	}
}

@media (min-width: 767px) and (max-width: 1023.98px) {

	.single-post-image-wrap {
		max-width: 794px;
		margin-inline: auto;
	}

    .single-post-content, 
    .single-post-header {
        max-width: 591px;
    }

    .single-post-title {
        font-size: 40px;
    }

    .col-md-2 {
        flex: 0 0 auto;
        width: 25%;
        max-width: 202px !important;
    }

    .col-md-10 {
        flex: 0 0 auto;
        width: 75%;
        max-width: 591px !important;
    }

	.single-post-header--artigos {
		max-width: 1023px !important;
	}

	.single-post-title--artigos {
		font-size: 48px !important;
	}
}

@media (min-width: 1024px) and (max-width: 1819.98px) {

	.single-post-image-wrap {
		max-width: 1280px;
		margin-inline: auto;
	}

    .single-post-content, 
    .single-post-header {
        max-width: 738px;
    }

    .single-post-title {
        font-size: 40px;
    }

    .single-post-sidebar {
        border-left: 1px solid #E4DED2;
        padding-left: 40px;
        max-width: 400px;
    }

	.single-post-title--artigos {
		font-size: 48px !important;
	}

	.pt2026-noticias-header-right {
		padding-bottom: 0 !important;
	}

}

@media (min-width: 1820px) {

	.single-post-image-wrap {
		max-width: 1660px;
		margin-inline: auto;
	}

    .single-post-content, 
    .single-post-header {
        max-width: 869px;
    }

    .single-post-title {
        font-size: 48px;
    }

    .single-post-content {
        max-width: 820px;
    }

    .single-post-sidebar {
        border-left: 1px solid #E4DED2;
        padding-left: 40px;
        max-width: 400px;
    }
}

.single-post-content, 
.single-post-header {
    padding-left: 40px;
    border-left: 1px solid #E4DED2;
}

.single-post-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: initial;
}

.single-post-title {
    font-family: var(--pt2026-font-display-ultra-cond);
    font-weight: 900;
    letter-spacing: 2%;
	line-height: 105%;
    text-transform: uppercase;
}

.single-post-excerpt {
    font-family: var(--pt2026-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
}

.single-post-back-link {
    font-family: var(--pt2026-font-body);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    text-decoration: none;
	line-height: normal;
    color: var(--pt2026-secondary-btn-fg) !important;
    border-bottom: var(--pt2026-secondary-btn-line-width) solid var(--pt2026-secondary-btn-line);
    padding-bottom: var(--pt2026-secondary-btn-pad-underline);
    transition:
		color var(--pt2026-transition-hover),
		border-bottom-color var(--pt2026-transition-hover);
}

.single-post-back-link:hover,
.single-post-back-link:focus-visible {
    color: var(--pt2026-red) !important;
    border-bottom-color: transparent;
}

.single-post-back-arrow {
    margin-right: 0.15em;
}

.single-post-artigos-hero .single-post-back-link {
	width: fit-content;
	display: inline-block;
}

.single-post-header--artigos {
	max-width: 680px;
	padding-left: 0;
	border-left: 0;
}

.single-post-title--artigos {
	font-family: var(--pt2026-font-serif);
	font-size: 72px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.single-post-excerpt--artigos {
	max-width: 96%;
	font-family: var(--pt2026-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 150%;
	color: #202020;
}

.single-post-image-wrap--artigos {
	max-width: 820px;
	aspect-ratio: auto;
}

@media (min-width: 1024px) {
	.single-post-artigos-hero {
		border-bottom: 1px solid #E4DED2;
		padding-right: 12px;
		padding-bottom: 40px;
	}
}

.single-post-image-caption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	font-family: var(--pt2026-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 120%;
	color: #202020;
	padding-top: 12px;
}

.single-post-image-caption-text + .single-post-photo-credit::before {
	content: "·";
	margin-right: 0.35rem;
}

.single-post-image-wrap .single-post-photo-credit {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}

.single-post-author {
    font-family: var(--pt2026-font-body);
    font-size: 12px;
    font-weight: 700;
    color: #202020;
}

.single-post-photo-credit, 
.single-post-share-label, 
.single-post-meta {
    font-family: var(--pt2026-font-body);
    font-size: 12px;
    font-weight: 300;
    color: #202020;
	line-height: 110%;
}

.entry-content p,
.single-post-content p {
    font-family: var(--pt2026-font-body);
    font-size: 18px;
    font-weight: 400;
	line-height: 150%;
    color: #202020;
}

.entry-content p em,
.single-post-content p em {
    font-family: var(--pt2026-font-serif);
    font-style: italic;
    font-size: 32px;
    font-weight: 400;
	line-height: 120%;
    color: #202020;
}

/* QA 7.1: pull quote no single com texto em 20px */
.single-post-content blockquote p,
.single-post-content .wp-block-pullquote blockquote p,
.single-post-content .wp-block-quote.is-style-large p {
	font-size: 20px;
	line-height: 140%;
}

.entry-content h2,
.single-post-content h2 {
    font-family: var(--pt2026-font-display-cond);
    font-size: 24px !important;
    font-weight: 700;
    color: #202020;
}

.entry-content h3,
.single-post-content h3 {
    font-family: var(--pt2026-font-display-cond);
    font-weight: 700;
    color: #202020;
}

.entry-content figure img,
.single-post-content figure img {
    max-width: 780px !important;
    max-height: 580px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* Figuras no conteúdo com markup da imagem destacada (.single-post-image-caption). */
.entry-content figure figcaption.single-post-image-caption,
.single-post-content figure figcaption.single-post-image-caption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	font-family: var(--pt2026-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 120%;
	color: #202020;
	text-align: left;
	padding-top: 12px;
	margin: 0;
}

/* Legado: figcaption sem crédito estruturado (só seta via CSS). */
.entry-content figure figcaption:not(.single-post-image-caption),
.single-post-content figure figcaption:not(.single-post-image-caption) {
	font-family: var(--pt2026-font-body);
	font-size: 14px;
	font-weight: 400;
	color: #202020;
	text-align: left;
}

.entry-content figure figcaption:not(.single-post-image-caption)::before,
.single-post-content figure figcaption:not(.single-post-image-caption)::before {
	content: '↑';
	display: inline-block;
	margin-right: 0.25em;
	font-weight: 600;
	line-height: 1;
}

/* --- Sidebar: Tópicos (tags) — até 1023px lado a lado; a partir de 1024px empilhados --- */
.single-post-topics-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem;
	width: 100%;
}

@media (min-width: 1024px) {
	.single-post-topics-list {
		flex-direction: column;
		flex-wrap: nowrap;
	}
}

.single-post-main-news-title {
    border-top: 1px solid #E4DED2;
    padding-top: 16px;
}

.single-post-main-news-title, 
.single-post-topics-title {
	font-family: var(--pt2026-font-display-cond);
	font-size: 22px;
	font-weight: 700;
	color: #202020;
    letter-spacing: 2%;
    text-transform: uppercase;
}

.home-principal-section-chart {
	margin-bottom: 5px;
	margin-left: 5px;
}

.single-post-topic-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 0.45rem 1rem;
	background-color: #fff;
	border: 1px solid #e4ded2;
	color: inherit !important;
	font-family: var(--pt2026-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
	max-width: 100%;
	word-break: break-word;
}

.single-post-topic-badge:hover,
.single-post-topic-badge:focus {
	background-color: #fff;
	border-color: #c41e3a;
	color: #c41e3a;
	text-decoration: none;
}

/* --- Galeria [gallery] no single: carrossel Owl (assets/js/single-gallery.js) --- */
.single-post-content .pt2026-gallery-carousel-wrap {
	margin: 1.5rem 0 2rem;
	clear: both;
}

/* Área da imagem + controles (legenda fica fora, em .pt2026-gallery-caption-slot). */
.single-post-content .pt2026-gallery-media {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
}

.single-post-content .pt2026-gallery-carousel-wrap .gallery.pt2026-gallery-carousel {
	margin: 0;
	width: 100%;
}

.single-post-content .gallery.pt2026-gallery-carousel .gallery-item {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.single-post-content .gallery.pt2026-gallery-carousel figure.gallery-item {
	display: block;
	margin: 0;
}

.single-post-content .gallery.pt2026-gallery-carousel .gallery-icon {
	position: relative;
	width: 100%;
	line-height: 0;
}

.single-post-content .gallery.pt2026-gallery-carousel .gallery-icon a {
	display: block;
	line-height: 0;
}

.single-post-content .gallery.pt2026-gallery-carousel .gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(70vh, 640px);
	object-fit: cover;
	object-position: center;
	border-radius: 12px;
}

/* Gradiente no rodapé da imagem para legibilidade dos controles. */
.single-post-content .gallery.pt2026-gallery-carousel .gallery-icon::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
	pointer-events: none;
	z-index: 1;
	border-radius: 0 0 12px 12px;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-stage-outer {
	overflow: hidden;
}

.single-post-content .gallery.pt2026-gallery-carousel .gallery-caption {
	display: none !important;
}

/* Legenda + crédito abaixo da galeria (mesmo padrão da imagem destacada). */
.single-post-content .pt2026-gallery-caption-slot .single-post-image-caption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	padding-top: 0.75rem;
	margin: 0;
}

/*
 * Rodapé da galeria — controles customizados (.pt2026-gallery-footer).
 */
.single-post-content .pt2026-gallery-footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.75rem;
	z-index: 6;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	min-height: 22px;
	margin: 0;
	padding: 0 0.75rem;
	box-sizing: border-box;
}

.single-post-content .pt2026-gallery-btn {
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #e4142c;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: opacity 0.2s ease;
	line-height: 1;
}

.single-post-content .pt2026-gallery-btn:hover,
.single-post-content .pt2026-gallery-btn:focus {
	opacity: 0.85;
	outline: none;
}

.single-post-content .pt2026-gallery-btn--prev,
.single-post-content .pt2026-gallery-btn--next {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
}

.single-post-content .pt2026-gallery-btn .bi {
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.single-post-content .pt2026-gallery-dots {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	z-index: 1;
	margin: 0;
	padding: 0;
}

.single-post-content .pt2026-gallery-dot {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}

.single-post-content .pt2026-gallery-dot span {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	transition: background 0.2s ease, transform 0.2s ease;
}

.single-post-content .pt2026-gallery-dot.is-active span,
.single-post-content .pt2026-gallery-dot:hover span {
	background: #fff;
	transform: scale(1.15);
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-nav,
.single-post-content .gallery.pt2026-gallery-carousel .owl-dots {
	display: none !important;
}